package sis.studentinfo;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: alexander-kalden
 * Date: 9/17/12
 * Time: 3:12 PM
 * To change this template use File | Settings | File Templates.
 */
public class StudentDirectory {
   private Map<String,Student> students =
      new HashMap<String,Student>();

   public void add(Student student) {
      students.put(student.getId(), student);
   }

   public Student findById(String id) {
      return students.get(id);
   }
}
